package database;

import javax.persistence.EntityManager;
public class SingleEntityManager {
	
	private static EntityManager em;

	private SingleEntityManager() {}

	public static EntityManager getInstance()
	{
		if(em == null)
		{
			em = SingleEntityManagerFactory.getInstance().createEntityManager();
		}
		return em;
	}
}
